import { ApiProperty } from "@nestjs/swagger";
import { IsNotEmpty, Length, Max, Min } from "class-validator";

export class CreateUserDto {
  @ApiProperty({example:'admin'})
  //  @Min(5)
  //  @Max(10)
  @Length(5,10)
  @IsNotEmpty()
  username :string
     
   @Length(8,15)
  // @ApiProperty({example:'12345678'})
  @ApiProperty({example:'896211755'})
  @IsNotEmpty()
  // @Min(8)
  // @Max(15)
  password :string
  
}
